package com.samge.fandroid

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView

class CActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        setContentView(R.layout.activity_main)
        findViewById<TextView>(R.id.hello)?.text = this.localClassName

        findViewById<Button>(R.id.btn)?.setOnClickListener {
            val intent = Intent()
            intent.setClass(this, BActivity::class.java)
            this.startActivity(intent)
        }
    }
}